package demo1;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 2024/7/13 Order类 Cjj
 */

public class Order {
    private String name;


    private LocalDateTime time;

    private Double  price;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Order{" +
                "name='" + name + '\'' +
                ", time=" + time +
                ", price=" + price +
                '}';
    }

    public Order(String name, LocalDateTime time, Double price) {
        this.name = name;
        this.time = time;
        this.price = price;
    }

}
